package com.qfjy.homework.maojiahao;

/**
 * @author amao
 * @description
 * @create 2023-06-29
 */
public abstract class CaffeineBeverage {
    final void prepareRecipe() {
        boilWater();
        brew();
        pourInCup();
        addCondiments();
    }

    abstract void brew();

    abstract void addCondiments();

    void boilWater() {
        System.out.println("水烧了");
    }

    void pourInCup() {
        System.out.println("倒入茶杯里");
    }
}
